package com.equipment.system.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 设备版本信息
 *
 * @author 杨凯
 * @create 2018-03-26 14:23
 **/
public class EquipmentVersion extends Model<EquipmentVersion> {
	@Override
	protected Serializable pkVal() {
		return this.id;
	}
	@TableId(type = IdType.AUTO)
	private int id;
	private String url;
	private String description;
	private String version;
	private Timestamp created;


	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public Timestamp getCreated() {
		return created;
	}

	public void setCreated(Timestamp created) {
		this.created = created;
	}

	@Override
	public String toString() {
		return "EquipmentVersion{" +
				"id=" + id +
				", url='" + url + '\'' +
				", description='" + description + '\'' +
				", version='" + version + '\'' +
				", created=" + created +
				'}';
	}
}
